import unittest

# 参数(路径，加载模块的规则)返回的是suite对象实例
discover = unittest.defaultTestLoader.discover('./test_package',pattern='demo*.py')

runner = unittest.TextTestRunner(verbosity=2)
runner.run(discover)
